package test6;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-11-01
 * Time: 18:05
 */
public interface Container {
    public static final double pi=3.1415926;
    public abstract double area();
    public abstract double volume();
    static double sumofArea(Container c[]) {
        double sum =0;
        for (Container c1: c) {
            sum += c1.area();
        }
        return sum;
    }

    static double sumofVolume(Container c[]) {
        double sum =0;
        for (Container c1: c) {
            sum += c1.volume();
        }
        return sum;
    }
}

